<template>
    <div style="background: #EAEDF1;">
      <div class="api-top">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">您当前的位置</el-breadcrumb-item>
            <el-breadcrumb-item>首页</el-breadcrumb-item>
            <el-breadcrumb-item>自定义块</el-breadcrumb-item>
            <el-breadcrumb-item>自定义块管理</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <div class="api-main">
        <div class="title">
            <span>自定义块管理</span> 
        </div>
        <a href="#" class="add">添加自定义块分类</a>
        <template>
            <el-table
                :data="tableData"
                style="width: 100%">
                <el-table-column
                prop="date"
                label="日期"
                highlight-current-row
                width="180">
                </el-table-column>
                <el-table-column
                prop="name"
                label="姓名"
                width="180">
                </el-table-column>
                <el-table-column
                prop="address"
                label="地址">
                </el-table-column>
            </el-table>
        </template>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
        }
    }
}
</script>

<style scoped>
.api-top{
    background: #fff;
    height: 30px;
    padding: 0 25px;
}
.el-breadcrumb{
    line-height: 30px;
}
.api-main{
    margin: 30px 30px 0;
    background: #fff;
    padding: 15px 27px;
    height: 900px;
}
.title{
    line-height: 44px;
    height: 45px;
    margin:0 0 20px;
    border-bottom: 1px solid#ddd;
}
.title span{
    padding-left: 15px;
    margin-left: 2px;
    border-left: 2px solid #88b7e0;
    color: #2d2b2c;
    height: 15px;
    line-height: 15px;
    display: inline-block;
}
.add{
    display: inline-block;
    width: auto;
    padding: 0 17px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background: #28b5d6;
    border: 0;
    text-decoration: none;
    margin-bottom: 10px;
}
</style>